package grape.workflow.service.comment.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import grape.common.tools.ToolService;
import grape.workflow.service.comment.dto.CommentDto;
import grape.workflow.service.comment.query.CommentQuery;

import java.util.List;

/**
 * 评论服务
 * Created by yangwei
 * Created at 2020/6/24 10:33
 */
public interface IWorkflowCommentService extends ToolService {

    /**
     * 查询评论列表
     * @param commentParam
     * @return
     */
    List<CommentDto> list(CommentQuery commentParam);

    /**
     * 分页查询评论列表
     * @param page
     * @param commentParam
     * @return
     */
    IPage<CommentDto> listPage(IPage<CommentDto> page, CommentQuery commentParam);

    /**
     * 单个
     * @param commentParam
     * @return
     */
    CommentDto getOne(CommentQuery commentParam);

    /**
     * 添加评论
     * @param commentDto
     * @return
     */
    CommentDto insert(CommentDto commentDto);
}
